package com.fll.fangyicommon.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author fll
 * create 2023/3/3
 */
@Setter
@Getter
@Data
@NoArgsConstructor
public class Message {

    @TableId(type = IdType.AUTO)
    private Integer messageId;

    //发送者userId
    private Integer senderId;
    //接收者userId
    private Integer acceptorId;
    //消息内容
    private String messageContent;
    //是否已读(0：未读，1：已读)
    private Integer isRead;
    //发送时间
    private String sendTime;
    //是否为最后一条，可显示在前端聊天页面用户上
    private Integer isLast;
    private String yl;


}
